package com.briup.cms.dao;
/**
 * @program: Consult_Management_Syetem1
 * @description:
 * @author: 杨洁
 * @create: 2020-07-02
 **/
import com.briup.cms.bean.Role;
import org.apache.ibatis.annotations.*;

import java.util.List;
@Mapper
public interface RoleMapper {

    @Select("select * from cms_role")
    List<Role> selectAll();
    @Insert("insert into cms_role values(null,#{name})")
    void insert(Role role);

    @Update("update cms_role set name=#{name} where id=#{id}")
    void update(Role role);

    @Delete("delete from cms_role where id = #{id}")
    void deleteById(long id);
}
